package com.bafarat;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	
float angle1;
float angle2;
float angle3;
float result;
int option;

Scanner input = new Scanner(System.in);

do{
	System.out.println("Add angle 1");
	angle1 = input.nextFloat();
	System.out.println("Add angle 2");
	angle2 = input.nextFloat();
	System.out.println("Add angle 3");
	angle3 = input.nextFloat();
	
	result = angle1 + angle2 + angle3;
	
	if (result == 180){
		System.out.println("that makes a traingle");
	}
		else{
			System.out.println("that doesn't make a traingle");
		}
			System.out.println("would you like to try it again <1>YES <2>NO");
			option = input.nextInt();
}
	while (option == 1);
}
	}

